package com.cdks.wuxiu.api.service;

import java.util.List;

import com.cdks.wuxiu.api.model.dto.CommentReplyInfoDTO;
import com.cdks.wuxiu.api.model.dto.CommentTopicInfoDTO;
import com.cdks.wuxiu.entity.mysql.CommentReplyInfo;
import com.cdks.wuxiu.entity.mysql.CommentTopicInfo;


/**
 * 评论服务类
 */
public interface CommentService {
    int saveTopic(CommentTopicInfo topicInfo);
    int saveReply(CommentReplyInfo replyInfo);
    int addReplyCount(long topicId);
    int setTopicById(CommentTopicInfo topicInfo);
    int setReplyById(CommentTopicInfo replyInfo);

    List<CommentTopicInfoDTO> getTopicList(Long userId, Long destId, Integer destType, Integer type, Integer page);
    List<CommentReplyInfoDTO> getReplyList(Long userId, Long topicId, Integer type, Integer page);

    CommentTopicInfo getTopicById(long topicId);
    CommentTopicInfo getReplyById(long replyId);
}
